<?php 
include('V_Abrir_Sesion.php');
?>
<!DOCTYPE html>
<html>
<head>
  <title>Asignatura</title>
   <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
    <script type="text/javascript" src="js/bootstrap-tab.js"></script>
    <script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tab.js"></script>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/CTP.css">


</head>
<body background="fondo3.jpg">
  <script src="http://code.jquery.com/jquery.js"></script>
    <script src="js/bootstrap.min.js"></script>

<!--Inicio del menu Principal -->
<center>
<div>
<nav  id="nav1" class="navbar navbar-pills navbar-fixed-center" role="navigation">

  <div class="collapse navbar-collapse navbar-ex1-collapse">

              <div class="collapse navbar-collapse">
              
                <ul class="nav navbar-nav">


<li ><a href="V_Inicio.php"><span class="glyphicon glyphicon-home"></span> Inicio</a></li>

<li class="dropdown" >
     <a href="V_Us.php" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> Usuario</a>
     <ul class="dropdown-menu" role="menu">
            <li><a id="TxtAgregar" href="V_Us.php">Gestion de Usuarios</a></li>
            <li><a id="TxtAgregar" href="V_Per.php">Gestion de Permisos</a></li>
            </ul>
     </li>
<li id="menusombra"><a href="V_Asig.php"><span class="glyphicon glyphicon-book"></span> Asignatura</a></li>

<li  ><a href="V_Alu.php"><span class="glyphicon glyphicon-user"></span> Alumnos</a></li>

<li  ><a href="V_Pro.php"><span class="glyphicon glyphicon-user"></span> Profesores</a></li>

<li ><a href="V_.php"><span class="glyphicon glyphicon-book"></span> Secciones</a></li>

<li ><a href="V_Bol.php"><span class="glyphicon glyphicon-pencil"></span> Boletas</a></li>

                </ul>

                <ul class="nav navbar-nav navbar-right">
                  <li><a href="V_Cerrar_Sesion.php"><span class="glyphicon glyphicon-cog"></span> Cerrar Sesión</a></li>
                </ul>
</div>

</div>

</nav>
</div>
</center>
<!--Cierre del Menu Principal--> 
    <br>
    <br>
    <div class="container-fluid">
    
    <center>
        <form action='../Control/C_Asig.php' method='POST' class="form-horizontal"> 
        <div class="alert alert-danger" role="alert">

        <p class="text-error">Si presiona el boton 'Eliminar'<br> Se eliminara la Asignatura del Sistema.</p>
           
                <table border=1 class="table table-striped">
                <tr>
                  <td><b>Id Asignatura </b></td>
                  <td><b>Nombre de Asignatura </b></td>
           
                </tr>

                <?php
                 require('../Model/ModelConexion.php');

                $V_Asig_Eliminar_idAsig=$_GET['IdAsignatura'];
                $conexion = new Conexion();
    
                $consulta = $conexion->Consulta("
                SELECT * FROM asignaturas
                WHERE IdAsignatura= '$V_Asig_Eliminar_idAsig'
                ");

                $Busca_Pro= $conexion->Arreglo($consulta);

                echo "<tr class='danger'>"; 
                echo "<td valign='top'>" .( $Busca_Pro['IdAsignatura']) . "</td>"; 
                echo "<td valign='top'>" .( $Busca_Pro['NombreAsig']) . "</td>";
           

                ?>  
                </tr>
                </table>

               <form action='../Control/C_Asig.php' method='POST' class="form-inline">
              <input type='text' name='V_Asig_Eliminar_idAsig'  class="form-control" id="idprofesor" style="width: 200px; padding: 2px"  value='<?php echo $Busca_Pro['IdAsignatura']  ?>' ReadOnly/>
              <br>
              <input id="btnAgregar" type="submit" class="btn btn-success" value='Eliminar'><input type='hidden' value='1' name='Btn_Asig_Eliminar' /> 
              <a href="V_Asig.php" class="btn btn-danger btn-lg active" role="button">Cancelar</a> 
            </form>

        </div>        
    </form>

    </center>
    </div>

</body>

</html>
